package com.itheima.a12waitandnotify1;

public class ThreadDemo1 {
    public static void main(String[] args) {
        //等待和唤醒

        //创建线程对象
        Foodie foodie = new Foodie();
        Cook cook = new Cook();
        //启动线程
        foodie.start();
        cook.start();
    }
}
